from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import staticfiles
from django.conf.urls import url
from django.contrib import admin
from django.conf.urls import include

from mainsite import news
from . import view,search,mylogin,json,upload,image,fun,mail,data

urlpatterns = [
    url(r'^$', view.index,name='index'),
    url(r'^login$', mylogin.login),
    url(r'^course/', search.course),
    url(r'^upload$',upload.index),
    url(r'^uploadapp$',upload.app),
    url(r'^uploadapps$',upload.apps),
    url(r'^uploadrich$',upload.rich),
    url(r'^headimg',upload.headimg),
    url(r'^loginout$', mylogin.loginout),
    url(r'^getstatus', mylogin.status),
    url(r'^register', mylogin.register),
    url(r'^test',view.test),
    url(r'^data',data.index),
    url(r'^download/app$',news.downloadapp),
    url(r'^download/apps$',news.downloadapps),
    url(r'^download/rich$',news.downloadrich),
    url(r'^topnews$',data.topnews),
    url(r'^topnews/version',news.version),
    url(r'^sys', data.sys),
    url(r'^neihan',fun.index),
    url(r'^course/', search.course),
    url(r'^mail/', view.mail),
    url(r'^sendmail', mail.sendmail),
    url(r'^image/$', image.index),
    url(r'^image/.*$',image.image),
    url(r'^caipu/', view.caipu),
    url(r'^info', mylogin.info),
    url(r'^jianli/', view.jianli),
    url(r'^json/topnews',json.topnews),
    url(r'^json/orders',json.orders),
    url(r'^json/identification',json.identification),
    url(r'^json/register',json.register),
    url(r'^json/cancel$',json.cancel),
    url(r'^json/admincancel$',json.admincancel),
    url(r'^json/addtime$',json.addtime),
    url(r'^json/create$',json.createone),
    url(r'^json/createmore$',json.createmore),
    url(r'^json/createindex$',json.createindex),
    url(r'^json/transfer',json.transfer),
    url(r'^json/updatastatus',json.updatastatus),
    url(r'^admin/', admin.site.urls),
]
urlpatterns += staticfiles_urlpatterns()